package reposibility.chain;

/**
 * @author ZLL
 * @date create in 2018/05/10
 */
//副董事长
public class VicePresident extends Approver {


    public VicePresident(String name) {
        super(name);
    }

    @Override
    public void handleRequest(PurchaseRequest purchaseRequest) {
        if (purchaseRequest.getPrice() < PriceEnum._1w.getPrice()) {
            System.out.println("副董事长"+name+"处理审批采购单。。" + purchaseRequest.getId() + "," +
                    purchaseRequest.getPrice() + "," + purchaseRequest.getDesc());
        } else {
            ///交给后继的处理
            this.successor.handleRequest(purchaseRequest);
        }
    }
}